﻿using EllenTang.IDal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace EllenTang.IBll
{
    public interface IBaseBll<T>where T:class,new()
    {
        IBaseDal<T> CurrentDal { get; set; }

        IQueryable<T> LoadEntities(Expression<Func<T, bool>> whereLamda);
        IQueryable<T> LoadEntities<s>(int pageSize, int pageIndex, out int pageCount, Expression<Func<T, bool>> whereLamda, Expression<Func<T, s>> orderbyLamda, bool isAsc);
        bool UpdateEntities(T entities);
        bool DeleteEntities(T entities);
        T AddEntities(T entities);
    }
}
